﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Aluno_email.aspx.cs" Inherits="Qvaliz.CAD.Matriculas.Aluno_email" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register src="../Usercontrol/wuscSeguranca.ascx" tagname="wuscSeguranca" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">

        //      função para carregar o grid via panel ajax
        function LoadPanel() {
            $find("rapGrid").ajaxRequest("load");
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
      
    <asp:ObjectDataSource ID="ods_turma" runat="server" 
        SelectMethod="_obter_Turma_matricula" TypeName="Banco.BD_Turma" 
         OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:Parameter Name="TURMA_ID" Type="String" />
            <asp:Parameter Name="TUR_DESCRICAO" Type="String" />
            <asp:Parameter Name="USUARIO_ID" Type="String" />
            <asp:Parameter Name="TURMAS_SEMALUNOS" Type="Boolean" />
        </SelectParameters>
    </asp:ObjectDataSource>
     
    <asp:HiddenField ID="hid_OPCAOPAGINA" runat="server" />

     <uc1:wuscSeguranca ID="wuscSeguranca1" runat="server" />


    <table width="100%">
        <tr>
            <td>
                
                <div style="float:left; margin-left:0px; width:8%">
                    <asp:Label ID="lbl_aluno_id" runat="server" Text="Código Interno" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadNumericTextBox ID="aluno_id" runat="server" Font-Size="X-Small"
                                Width="97%" DataType="System.Int32" ReadOnly="false">
                                <NumberFormat DecimalDigits="0" />
                                <ReadOnlyStyle BackColor="#CCCCCC" />
                    </telerik:RadNumericTextBox>                
                </div>
                <div style="float:left; margin-left:14px; width:8%">
                    <asp:Label ID="lbl_bolsista" runat="server" Text="Bolsista" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="bolsista" runat="server" 
                                    Font-Size="X-Small" Width="100%" Filter="Contains" 
                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" 
                                    style="margin-bottom: 0px">
                        <Items>
                            <telerik:RadComboBoxItem runat="server" />
                            <telerik:RadComboBoxItem runat="server" Text="SIM" 
                                Value="1" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="NÃO" 
                                Value="0" Font-Size="X-Small" />                            
                        </Items>
                    </telerik:RadComboBox>                    
                </div>
                
                <div style="float:left; margin-left:14px; width:20%">
                    <asp:Label ID="lbl_pes_nome" runat="server" Text="Aluno" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadTextBox ID="pes_nome" Runat="server" Font-Size="X-Small" 
                        MaxLength="200"
                        Width="97%">
                    </telerik:RadTextBox>                
                </div>
                <div style="float:left; margin-left:14px; width:30%">
                    <asp:Label ID="lbl_turma_matricula" runat="server" Text="Turma" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="turma_matricula" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAOCOMP" 
                                    DataValueField="TURMA_ID" Filter="Contains" 
                                    EmptyMessage="Selecione uma Turma" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="turma_matricula_ItemsRequested" 
                                    style="margin-bottom: 0px">                        
                    </telerik:RadComboBox>                    
                </div>
                <div style="float:left; margin-left:10px; width:10%;">
                    <asp:Label ID="lbl_emailresponsavel" runat="server" Text="E-mail Responsável" Font-Bold="true" 
                        Font-Size="X-Small"></asp:Label> <br />
                    <asp:CheckBox ID="ckb_emailresponsavel" runat="server" TabIndex="13" />
                </div>
                <div style="float:left; margin-left:14px; width:10%">
                    <asp:Label ID="lbl_orderBy" runat="server" Text="Ordernar por" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadComboBox ID="rcb_orderBy" runat="server" 
                                    Font-Size="X-Small" Width="100%" Filter="Contains" 
                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" 
                                    style="margin-bottom: 0px">
                        <Items>
                            <telerik:RadComboBoxItem runat="server" />
                            <telerik:RadComboBoxItem runat="server" Text="CÓDIGO" 
                                Value="ALUNO.ALUNO_ID" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="NOME" 
                                Value="ALUNO.PES_NOME" Font-Size="X-Small" />
                            <telerik:RadComboBoxItem runat="server" Text="TURMA" 
                                Value="ALUNO.MATRICULAS" Font-Size="X-Small" />                            
                        </Items>
                    </telerik:RadComboBox>                    
                </div>
                
                
                <div style="float:left; margin-left:10px; margin-top:10px; width:20px">
                    <asp:ImageButton ID="imgbConsultar" runat="server" 
                        ImageUrl="~/Imagens/pagina_lupa_cinza.png" 
                        ToolTip="Localizar" onclientclick="LoadPanel(); return false;"/>
                               
                </div>                                               
            </td>
        </tr>
        <tr>
            <td>
                <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
                 </telerik:RadScriptManager>                                  

                  <telerik:RadAjaxLoadingPanel ID="ralpGrid" runat="server" Skin="Default">
                </telerik:RadAjaxLoadingPanel>
                    
                <telerik:RadAjaxPanel ID="rapGrid" runat="server" Height="430px" 
                    Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpGrid" 
                    onajaxrequest="rapGrid_AjaxRequest">

                    <telerik:RadTextBox ID="rtbEmail" runat="server" Rows="25" TextMode="MultiLine" 
                        Width="100%">
                    </telerik:RadTextBox>

                </telerik:RadAjaxPanel>
            </td>
        </tr>
                            
    </table>

    </form>
</body>
</html>
